package com.bango.nokia.java;

final class BangoPoster implements Runnable
{
	private BangoLogger _bangoLogger;
	private boolean _postCurrent;

	BangoPoster(BangoLogger bangoLogger, boolean postCurrent)
	{
		super();
		_bangoLogger = bangoLogger;
		_postCurrent = postCurrent;
	}

	public final void run()
	{
		_bangoLogger.PostStoredEvents();

		if (_postCurrent)
		{
			_bangoLogger.PostEvents();
		}
	}
}
